﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SaveQuery.aspx.cs" Inherits="Danser_AJAXEnabledWebApplication.Query_Popups.SaveQuery" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Save Query</title>
    <style type="text/css">
        .style1
        {
            width: 158px;
        }
        .style2
        {
            width: 157px;
        }
        .style3
        {
            width: 22px;
        }
    </style>
</head>
<body bgcolor="Lavender">
    <form id="form1" runat="server">
 
    <table width="465px">
        <tr>
            <td>
                <asp:Label ID="titleLabel" runat="server" Font-Bold="True" 
                    Font-Names="Arial" Font-Size="12pt" ForeColor="MidnightBlue" 
                    Text="Fill the following details in order to save your query:"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                <table style="width:100%;">
                    <tr>
                        <td class="style2">
                            <asp:Label ID="nameLabel" runat="server" Font-Bold="True" 
                                Font-Names="Arial" Font-Size="11pt" ForeColor="MidnightBlue" 
                                Text="Name:"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="nameTextBox" runat="server" Width="252px"></asp:TextBox>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td>
                <table style="width:100%;">
                    <tr>
                        <td class="style1">
                            <asp:Label ID="descriptionLabel" runat="server" Font-Names="Arial" 
                                Font-Size="11pt" ForeColor="MidnightBlue" Text="Description" 
                                Font-Bold="True"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="descriptionTextBox" runat="server" Width="252px"></asp:TextBox>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td>
                <table style="width:100%;">
                    <tr>
                        <td>
                            <asp:Label ID="expressionLabel" runat="server" Font-Names="Arial" 
                                Font-Size="11pt" ForeColor="MidnightBlue" Text="Expression: " 
                                Font-Bold="True"></asp:Label>
&nbsp;
                            <asp:Label ID="ruleLabel" runat="server" Font-Names="Arial" 
                                Font-Size="10pt" ForeColor="MidnightBlue"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;</td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Panel ID="confirmSavingPanel" runat="server" Visible="False">
                    <table style="width:100%;">
                        <tr>
                            <td class="style3">
                                <asp:Image ID="Image1" runat="server" 
                                    ImageUrl="~/Resourses/Images/success.bmp" />
                            </td>
                            <td>
                                <asp:Label ID="confirmSavingLabel" runat="server" Font-Bold="False" 
                                    Font-Names="Arial" Font-Size="10pt" ForeColor="Black"></asp:Label>
                            </td>
                        </tr>
                    </table>
                    <br />
                    <asp:Button ID="closePopupButton" runat="server" BackColor="MidnightBlue" 
                        BorderColor="#C0C0FF" BorderStyle="Solid" BorderWidth="1px" 
                        Font-Names="Arial" ForeColor="White" 
                        OnClientClick="return window.close();" Text="Close" Width="70px" />
                </asp:Panel>
            </td>
        </tr>
        <tr>
            <td>
                    &nbsp;<asp:Panel ID="savePanel" runat="server">
                        <asp:Button ID="selectQuerylButton" runat="server" BackColor="MidnightBlue" 
                        BorderColor="#C0C0FF" BorderStyle="Solid" BorderWidth="1px" 
                        Font-Names="Arial" ForeColor="White" 
                        Text="Save" Width="70px" 
                        onclick="saveQueryButton_Click"/>
                        &nbsp;&nbsp;
                        <asp:Button ID="cancelButton" runat="server" BackColor="MidnightBlue" 
                            BorderColor="#C0C0FF" BorderStyle="Solid" BorderWidth="1px" 
                            Font-Names="Arial" Font-Size="10pt" ForeColor="White" 
                            OnClientClick="return window.close();" Text="Cancel" Width="70px" />
                    </asp:Panel>
                </td>
        </tr>
    </table>
 
    </form>
</body>
</html>
